/**
 * create by Alec
 */
// import { createAction } from "redux-actions";
import fetch from "../../utils/fetch.js";
// 查询入职员工列表
export const fetchPersonnelEntry = param => () =>
    fetch(`/hrmregister/mobile/weekly/list/entry`, {
        body: param,
        meta: {
            dipId: 67194
        }
    })
// 查询离职员工列表
export const fetchPersonnelDimission = param => () =>
     fetch(`/hrmregister/mobile/weekly/list/dimission`, {
        body: param,
        meta: {
            dipId: 67195
        }
    })
// 查询转入员工列表
export const fetchPersonnelTransferIn = param => () =>
     fetch(`/hrmregister/mobile/weekly/list/transferIn`, {
        body: param,
        meta: {
            dipId: 67196
        }
    })
// 查询转出员工列表
export const fetchPersonnelTransferOut = param => () =>
     fetch(`/hrmregister/mobile/weekly/list/transferOut`, {
        body: param,
        meta: {
            dipId: 67197
        }
    })

// 查询员工转正列表
export const fetchPersonnelTotalBeRegular = param => () =>
    fetch(`/hrmregister/mobile/weekly/list/beRegular`, {
        body: param,
        meta: {
            dipId: 69006,
        }
    })

// 查询员工转岗列表
export const fetchPersonnelTotalTransfer = param => () => 
    fetch(`/hrmregister/mobile/weekly//list/transfer`, {
        body: param,
        meta: {
            dipId: 69009,
        }
    })

// 按类型查询员工列表（全职，兼职，实习，其他）
export const fetchPersonnelEntryByType = param => () =>
     fetch(`/hrmregister/mobile/weekly/list/entryByType`, {
        body: param,
        meta: {
            dipId: 67229
        }
    })
// 按状态查询员工列表（正式，试用，待离职）
export const fetchPersonnelEntryByStatus = param => () =>
     fetch(`/hrmregister/mobile/weekly/list/entryByStatus`, {
        body: param,
        meta: {
            dipId: 67245
        }
    })